package com.zp.self.module.date.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author By ZengPeng
 * @Description
 * @date in  2021/1/29 9:48
 * @Modified By
 */
@Data
@Accessors(chain = true)
public class Person {

    private String name;

    private Integer age;
    //生日
    @JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private Date  birthday =new Date();

    @JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ss.SSSZ")
    private Date  date1 =new Date();

    private Date  date2 =new Date();

}
